//
//  StockBrandJaList.m
//  MarketDataColloctor
//
//  Created by jiro on 10/02/28.
//  Copyright 2010 jiro music. All rights reserved.
//

#import "StockBrandJaList.h"
#import "StockBrandJa.h"


@implementation StockBrandJaList

+ (id) stockBrandJaListWithPgResult: (PGresult*) res
{
	StockBrandJaList* ret = [ [ StockBrandJaList alloc ] init ];
	int rowCount = PQntuples( res );
	int columnCount = PQnfields( res );
	for ( int i = 0; i < rowCount; i++ )
	{
		NSMutableArray* values = [ [ NSMutableArray alloc ] init ];
		for ( int j = 0; j < columnCount; j++ )
		{
			[ values addObject: [ NSString stringWithCString: PQgetvalue( res, i, j ) encoding: NSUTF8StringEncoding ] ];
		}
		[ ret addObject: [ StockBrandJa stockBrandJaWithDbResponse: values ] ];
	}
	return ret;
}

- (id) init
{
	self = [ super init ];
	instance = [ [ NSMutableArray alloc ] init ]; 
	return self;
}

- (NSString*) sqlInsertStatement
{
	return nil;
}


@end
